import request from '@/utils/request'

// 订单列表
export function orderindex(data) {
  return request({
    url: '/order/index',
    method: 'post',
    data
  })
}

// 2订单详情
export function orderDetails(data) {
  return request({
    url: '/order/orderDetails',
    method: 'post',
    data
  })
}

// 3设置订单优惠
export function orderYouhui(data) {
  return request({
    url: '/order/orderYouhui',
    method: 'post',
    data
  })
}

// 4发货
export function orderFahuo(data) {
  return request({
    url: '/order/orderFahuo',
    method: 'post',
    data
  })
}

// 5取消订单
export function cancelOrder(data) {
  return request({
    url: '/order/cancelOrder',
    method: 'post',
    data
  })
}

// 6通知补款
export function msgOrder(data) {
  return request({
    url: '/order/msgOrder',
    method: 'post',
    data
  })
}

// 7导出订单
export function downloadOrder(data) {
  return request({
    url: '/order/downloadOrder',
    method: 'get',
    data
  })
}




// 8.修改收货洗洗,必传: citycode
export function orderAddress(params) {
    return request({
        url: '/order/orderAddress',
        method: 'post',
        params
    })
}